package com.jy.appmarket.cards;

import it.gmariotti.cardslib.library.internal.CardExpand;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import android.widget.Toast;

import com.jy.appmarket.R;

/**
 * 类说明：
 * 
 * @author Baker.li
 * @date 2015年8月21日
 * @version 1.0
 */
public class RelativeDownloadExpand extends CardExpand {

	public RelativeDownloadExpand(Context context) {
		super(context, R.layout.relative_download_expand);
	}

	@Override
	public void setupInnerViewElements(ViewGroup parent, View view) {
		TextView t1 = parent.findViewById(R.id.relative_download_expand_download1);
		TextView t2 = parent.findViewById(R.id.relative_download_expand_download2);
		TextView t3 = parent.findViewById(R.id.relative_download_expand_download3);

		t1.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				Toast.makeText(getContext(), "download1", Toast.LENGTH_SHORT).show();
			}
		});
		t2.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				Toast.makeText(getContext(), "download2", Toast.LENGTH_SHORT).show();
			}
		});
		t3.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				Toast.makeText(getContext(), "download3", Toast.LENGTH_SHORT).show();
			}
		});
	}
}